<?php
/*
 * Created on 08/07/2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
 	class Topic{
 		private $id;
 		private $title;
 	//	private $resources;
 		private $prerequitesites = Array();
 		private $rows=Array();
 		
 		function __construct($id){
 			$this->id=$id;
 		}
 		
 		
 		//ID
 		function getID(){
 			return $this->id;
 		}
 		
 		//Titulo
 		function getTitle(){
 			return $this->title;
 		}
 		
 		function setTitle($title){
 			$this->title=$title;
 		}
 		
 		//prerequisitos
 		function getPrerequisite($indice){
 			return $this->prerequitesites[$indice];
 		}
 		
 		function getPrerequisites(){
 			return $this->prerequitesites;
 		} 		
 		
 		function addPrerequisite($prerequisite){
 			array_push($this->prerequitesites,$prerequisite);
 		}
 		
 		function isEnable()
 		{
 			//aqui se busca en los prerequisitos
 			//¿Como? quien sabe
 		}
 		
 		//Filas
 		function getRow($indice){
 			return $this->rows[$indice];
 		}
 		
 		function getRows(){
 			return $this->rows;
 		}
 	
 		function addRow($row){
 			array_push($this->rows,$row);
 		}

 	}
?>
